<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test01</title>
</head>
<body>
<script type="text/javascript">
    let str = "𠮷abcdefg𠮷";

    // for (let i = 0; i < str.length; i++) {
    //     console.log(str[i]);
    // }

    // for(let s of str) {
    //     console.log(s);
    // }

    // console.log(str.includes("a"));
    // console.log(str.includes("h"));
    // console.log(str.includes("𠮷"));

    // console.log(str.indexOf("𠮷"));
    // console.log(str.indexOf("a"));

    // console.log(str.startsWith("𠮷"));
    // console.log(str.endsWith("𠮷"));

    // console.log(str.repeat(2));

    // console.log(str.padStart(20,">"));
    // console.log(str.padStart(5,">"));
    // console.log(str.padStart(20,"mn"));

    console.log(str.padEnd(20, "<"));
    console.log(str.padEnd(5, "<"));
    console.log(str.padEnd(20, "mn"));

</script>
</body>
</html>